# 导入基础模块
import time
import threading


# 自定义线程类
class CustomThread(threading.Thread):

    # 重写父类的run方法
    def run(self):
        for i in range(10):
            print(i)
            time.sleep(0.5)



if __name__ == "__main__":
    custom_object = CustomThread()
    custom_object.start()
    print("主进程" * 10)